from typing import Any
from dataclasses import dataclass
import json
@dataclass
class Root:
    access_token: str
    expires_at: float

    @staticmethod
    def from_dict(obj: Any) -> 'Root':
        _access_token = str(obj.get("access_token"))
        _expires_at = float(obj.get("expires_at")/1000)
        return Root(_access_token, _expires_at)

# Example Usage
# jsonstring = json.loads(myjsonstring)
# root = Root.from_dict(jsonstring)
